SYNOPSIS

Public Member Functions

SVDCompleteIncrementalLearning (double u=0.01, double kw=0, double kh=0)

~SVDCompleteIncrementalLearning ()

void HUpdate (const arma::sp_mat &V, const arma::mat &W, arma::mat &H)

The update rule for the encoding matrix H. void Initialize (const arma::sp_mat &dataset, const size_t rank)

void WUpdate (const arma::sp_mat &V, arma::mat &W, const arma::mat &H)

The update rule for the basis matrix W.

Private Attributes

arma::sp_mat dummy

bool isStart

arma::sp_mat::const_iterator * it

double kh

double kw

size_t m

size_t n

double u

Detailed Description

template<>class mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >

Definition at line 130 of file svd_complete_incremental_learning.hpp.

Constructor & Destructor Documentation

\fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::\fBSVDCompleteIncrementalLearning\fP (doubleu = \fC0.01\fP, doublekw = \fC0\fP, doublekh = \fC0\fP)\fC [inline]\fP

Definition at line 133 of file svd_complete_incremental_learning.hpp.

\fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::~\fBSVDCompleteIncrementalLearning\fP ()\fC [inline]\fP

Definition at line 139 of file svd_complete_incremental_learning.hpp.

Member Function Documentation

void \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::HUpdate (const arma::sp_mat &V, const arma::mat &W, arma::mat &H)\fC [inline]\fP

The update rule for the encoding matrix H. The function takes in all the matrices and only changes the value of the H matrix.

Parameters:

V Input matrix to be factorized.

W Basis matrix.

H Encoding matrix to be updated.

Definition at line 198 of file svd_complete_incremental_learning.hpp.

References mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentItemIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentUserIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::kh, and mlpack::amf::SVDCompleteIncrementalLearning< MatType >::u.

void \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::Initialize (const arma::sp_mat &dataset, const size_trank)\fC [inline]\fP

Definition at line 144 of file svd_complete_incremental_learning.hpp.

References mlpack::amf::SVDCompleteIncrementalLearning< MatType >::m, and mlpack::amf::SVDCompleteIncrementalLearning< MatType >::n.

void \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::WUpdate (const arma::sp_mat &V, arma::mat &W, const arma::mat &H)\fC [inline]\fP

The update rule for the basis matrix W. The function takes in all the matrices and only changes the value of the W matrix.

Parameters:

V Input matrix to be factorized.

W Basis matrix to be updated.

H Encoding matrix.

Definition at line 163 of file svd_complete_incremental_learning.hpp.

References mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentItemIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentUserIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::kw, and mlpack::amf::SVDCompleteIncrementalLearning< MatType >::u.

Member Data Documentation

arma::sp_mat \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::dummy\fC [private]\fP

Definition at line 225 of file svd_complete_incremental_learning.hpp.

bool \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::isStart\fC [private]\fP

Definition at line 228 of file svd_complete_incremental_learning.hpp.

arma::sp_mat::const_iterator* \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::it\fC [private]\fP

Definition at line 226 of file svd_complete_incremental_learning.hpp.

double \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::kh\fC [private]\fP

Definition at line 220 of file svd_complete_incremental_learning.hpp.

double \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::kw\fC [private]\fP

Definition at line 219 of file svd_complete_incremental_learning.hpp.

size_t \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::m\fC [private]\fP

Definition at line 223 of file svd_complete_incremental_learning.hpp.

size_t \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::n\fC [private]\fP

Definition at line 222 of file svd_complete_incremental_learning.hpp.

double \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< arma::sp_mat >::u\fC [private]\fP

Definition at line 218 of file svd_complete_incremental_learning.hpp.

Author

Generated automatically by Doxygen for MLPACK from the source code.